<%@page import="java.util.HashSet"%>
<%@page import="java.util.Set"%>
<%@page import="com.google.appengine.api.users.UserServiceFactory"%>
<%@page import="com.google.appengine.api.users.UserService"%>
<%@ include file="include/nocache.jspf" %>
<html>
<head>
</head>
<body>

<%
     UserService userService = UserServiceFactory.getUserService();
	if (!userService.isUserLoggedIn()) {
   %>
      Please <a href='<%=userService.createLoginURL("/boIndex.jsp")%>'>log in</a>
   <% } else { %>
      Welcome, <%= userService.getCurrentUser().getNickname() %>!
        (<a href='<%=userService.createLogoutURL("/boIndex.jsp")%>'>log out</a>)
   <%
     }
   %>

<table border="1" cellspacing="5">
	<tr>
		<td>
			<form action="./controller?action=sscp" method="POST"  target="result">
			<input type="text" size="10" name="id" placeholder="id de pedido">
			<input type="submit" value="Marcar como terminado"> 
			</form>
		</td>
		<td>
			<a href="./controller?action=dsc&or=1" target="result">Ordenes pendientes</a><br>
			<a href="./controller?action=dsc&or=0" target="result">Presupuestos pendientes</a><br>
		</td>
	</tr>
</table>
<iframe name="result" id="result" width="90%" height="50%">
</iframe>

</body>
</html>